package src.messagesToServer;

import src.messagesToClient.MessageToClient;
import src.serverSide.Control;

/**
 * This class is a command to the server to retrieve the desired data
 * @author John Stewart
 */
public class GetData extends MessageToServer {
	public boolean redoable = true;
	
	private int dataid;
	
	public GetData(int newdataid) {
		dataid = newdataid;
	}

	@Override
	public MessageToClient execute(String address, Control control) {
		return control.getData(address, dataid);
	}

}
